package org.kabanyo.events {
	import flash.events.Event;

	public class AutoCompleteEvent extends Event {
		public static const SEARCHING:String = "searching";
		public static const CLEARING_TEXT:String = "clearingText";
		public static const ITEM_SELECTED:String = "itemSelected";

		public function AutoCompleteEvent(type:String, bubbles:Boolean = false, cancelable:Boolean =
				false) {
			super(type, bubbles, cancelable);
		}

		/**
		 * clone() method in order for it to duplicate the properties of your custom class.
		 * If you do not set all the properties that you add in your event subclass,
		 * those properties will not have the correct values when the event is cloned.
		 * This is important because the Flex SDK clones events whenever redispatching takes place.
		 */
		override public function clone():Event {
			return new AutoCompleteEvent(type);
		}
	}
}
